const uniq = require('uniq');  //数组去重的包


const arr = [1,2,3,4,5,6,5,4,3,2,1];
console.log(uniq(arr));
